package com.njtoyo.taxi.admin.rest.wrapper.business.customer;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
import java.util.Objects;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "乘客查询模型")
public class CustomerQueryWrapper extends Page<CustomerQueryWrapper> {

    public CustomerQueryWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "行政区ID")
    private Long cantonId;

    private List<Long> cantonIds;

    @ApiModelProperty(value = "用户ids")
    private List<Long> userIds;

    @ApiModelProperty(value = "是否封号")
    private Boolean isFreezed;

    @ApiModelProperty(value = "乘客搜索，姓名或手机号")
    private String search;

    private String name;
    private String mobileNumber;
    private Boolean isActive;
    private String startDate;
    private String endDate;
}
